package com.oop.demo;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/14 12:39
 * @description
 */
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog("旺财", 3);
        Cat cat = new Cat("小米", 2);
        dog.makeSound();
        dog.fetchBall();
        dog.eat();
        System.out.println("=========================");
        cat.makeSound();
        cat.rubHuman();
        cat.eat();
    }
}
